package com.nondo.rdp.finance.model.setting.home;

import com.nondo.rdp.core.domain.attach.Attach;
import com.nondo.rdp.core.domain.base.BaseEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 模块-教育
 */
public class SettingModuleEducationBean<T> extends BaseEntity {
    private Long id;    //自增ID
    private String title;   //名字
    private Attach image;    //图片
    private int sort; //模块排序
    private int type; //操作类型，0=打开url，1=打开课程，2=打开分析
    private String value; //操作类型值，根据操作类型的不同，处理不同的内容
    private T extra;//扩展内容，给后端设置使用
    private Attach imageFull;    //完整图片
    private int isShare;//特殊字段，判断是内容是否可以分享，0=不能分享，1=可以分享

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @NotNull(message = "标题不能为空")
    @Length(min = 1, max = 32, message = "标题长度不能超过32个字符")
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Attach getImage() {
        return image;
    }

    public void setImage(Attach image) {
        this.image = image;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public T getExtra() {
        return extra;
    }

    public void setExtra(T extra) {
        this.extra = extra;
    }

    public Attach getImageFull() {
        return imageFull;
    }

    public void setImageFull(Attach imageFull) {
        this.imageFull = imageFull;
    }

    public int getIsShare() {
        return isShare;
    }

    public void setIsShare(int isShare) {
        this.isShare = isShare;
    }
}
